package com.infore.airsupervise.bean;

import java.util.List;

/**
 * @features:   实时因子数据AQI实体类
 * @author: WuTao
 * @date: 2017/3/17 09:25
 */
public class AQIRealDataE  extends BaseEntity{

    /**
     * psonName :
     * factorList : [{"unit":"ug/m3","name":"PM25","value":36},{"unit":"ug/m3","name":"PM10","value":26},{"unit":"mg/m3","name":"CO","value":31},{"unit":"ug/m3","name":"NO2","value":20},{"unit":"ug/m3","name":"O3","value":1},{"unit":"ug/m3","name":"SO2","value":3},{"unit":"","name":"AQI","value":142}]
     * address :
     * phone :
     * stationName : 乐从东南2.3km
     * time_b : 2017-03-17 08:49:46
     */

    private String psonName;
    private String address;
    private String phone;
    private String stationName;
    private String time;
    private List<FactorListBean> factorList;

    public String getPsonName() {
        return psonName;
    }

    public void setPsonName(String psonName) {
        this.psonName = psonName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<FactorListBean> getFactorList() {
        return factorList;
    }

    public void setFactorList(List<FactorListBean> factorList) {
        this.factorList = factorList;
    }

    public static class FactorListBean {
        /**
         * unit : ug/m3
         * name : PM25
         * value : 36
         */

        private String unit;
        private String name;
        private double value;

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public double getValue() {
            return value;
        }

        public void setValue(double value) {
            this.value = value;
        }
    }

    /**
     * 因子实时排名实体类
     */
    public static class RankBean{

        /**
         * mn : mn20170307101610
         * factorName : PM25
         * value : 98
         * stationName : 乐从西南2.9km
         */

        private String mn;
        private String factorName;
        private double value;
        private String stationName;
        private int stationType;
        private boolean online;

        public int getStationType() {
            return stationType;
        }

        public void setStationType(int stationType) {
            this.stationType = stationType;
        }

        public boolean isOnline() {
            return online;
        }

        public void setOnline(boolean online) {
            this.online = online;
        }

        public String getMn() {
            return mn;
        }

        public void setMn(String mn) {
            this.mn = mn;
        }

        public String getFactorName() {
            return factorName;
        }

        public void setFactorName(String factorName) {
            this.factorName = factorName;
        }

        public double getValue() {
            return value;
        }

        public void setValue(double value) {
            this.value = value;
        }

        public String getStationName() {
            return stationName;
        }

        public void setStationName(String stationName) {
            this.stationName = stationName;
        }
    }
}
